Germany's Scholz says EU can react to tariffs, favors cooperation