The G7 summit shows Europe’s enduring desire to work with the U.S. But behind the flattery, leaders are showing new flexibility in dealing with the mercurial American president.