Brazil’s Supreme Court has suspended an environmental permit for a major gold mining project in the Amazon rainforest.