Brazil approved on Wednesday an environmental permit for a hydroelectric dam in the Amazon, an official said on Wednesday, advancing a project the government hopes will shore up power supplies but critics call an ecological disaster.