President Trump has tightened the U.S. grip on the Americas by rewarding allies and punishing rivals. That has upended the region’s politics.