The first half of the sentence is essentially "granting" the country the ability to make its own laws. It can't grant that, those powers pre-exist the agreement, and therefore it's an empty statement. The only purpose of it is to make the second half of the sentence - the one that removes powers - more palatable.
The semantically equivalent sentence without that rhetorical dance is: "A party may only make laws that are consistent with this agreement".