European Union leaders said they would seek to accommodate U.K. demands as they outline priorities for the next five years—even while pledging to back a new European Commission president despite British objections.

The leaders were meeting Thursday ahead of a summit of all EU heads of state and government that appears set to appoint former Luxembourg Prime Minister Jean-Claude Juncker as the next president of the commission, the EU’s…