While July Fourth is the holiday that most directly celebrates Americans’ common heritage, this year it comes as their extreme divides underscore how difficult it has become for any president to set a unified direction for the country.