For decades our laws have been a licence to destroy the environment. Now, from the Amazon to Australia, the tide is turning, says the campaigner Mari Margil