The report that the economy contracted in the first quarter underscored how much President Trump has at risk as he pursues an aggressive trade war.