Mexico enacts climate change legislation