For agreements that are short in duration there usually isn't a problem when laws change. Most of the time there is advance notice of the new law and a time after it is passed before it takes effect so the parties can take that into account in the agreement's terms and pricing. The longer the duration of the contract the more a change in a law can have an impact.
The simplest situation would be if a law make performance under the contract illegal, in which case performance would be excused. Most of the time changes in laws may require a change to the product or service or may add an additional cost to performing the work. Buyers may attempt to manage or mitigate cost of change to laws through a warranty that "the product or service complies with applicable laws". In doing that and having the warranty be in effect during the term of the agreement, every time there is a change to the law the supplier is required to comply with those changes. In that approach the cost of any changes would be borne by the supplier.
In most negotiations regarding complying with applicable law and changes or additions to those laws, Suppliers will be concerned with two things. First is what location or locations does this apply to. The broader the list of locations, the more concerned the Supplier will be because changes could be frequent and they simply may not have the resources to keep track or all the different locations to make sure they comply. The second and more common issue is being able to recover the cost of impact the changed law had on their cost structure.
You basically have two options with these situation. You can refuse to allow price adjustments for changed laws in which the Supplier, if they were expecting a potential change, would include a contingency amount in their pricing to cover the risk. The problems with that approach is Buyers seldom win. If the law is passed and the costs are incurred, the supplier pays for those costs out of the contingency. If it isn't passed, the supplier keeps the contingency money. The second option is you can treat changes to applicable laws as a factor that will allow for a price adjustment. In that case its closer to other types of adjustments that the contract may provide for. For example if the contract involves union labor and the union contract will expire during the term, the parties may agree to make adjustments based upon the change in the rates and the amount of work remaining.
Adjusting the price may be the equitable thing to do especially if the changed law would have impacted all other potential suppliers and if you are able to pass along costs of such changes to your customers. For example, you could structure any commitment to price adjustments to apply to only new bids or proposals or when you are able to re-negotiate price with existing customers. In most cases agreeing to adjust pricing because of changed laws won't be a competitive burden, as the competition will have been similarly impacted. For example, when the EEU enacted their standards on the use of hazardous substances (RoHS) in certain products, all companies needed to comply.
For any price adjustments I would want the commitment require that they be actual, reasonable and be solely required to comply with the law. I would also place the burden of proof on the Supplier to prove what the impact of the change was and provide me with reasonable evidence to substantiate it just like any other claim. Show me what is was before and what it will be now and justify the difference. In turn, I would commit to promptly review the claims and be reasonable in my review of the information they provide.