The mining sector is proving to be one of his government’s most important allies.