The gains reflected optimism that President Javier Milei’s win will shore up support from the Trump administration.