By attacking Brazil’s sovereignty, Trump may have handed the leftist president a political and diplomatic opportunity.