POÇOS DE CALDAS, Brazil—Western companies are pouring money into Brazil’s rare-earth industry, hoping the South American nation can help loosen China’s grip on the minerals used in electric vehicles, ...