The European Union fought Donald Trump tooth and nail for most of his first term, with trade and energy policy, NATO spending commitments and highly personalized back-and-forth acrimony testing transatlantic relations and leaving Brussels and individual EU members mulling the prospects for greater “strategic autonomy” from Washington.