Mr. Macron expressed hope that lawmakers will form ad hoc majorities to pass legislation and said “our government should be able to follow a path of compromise to get things done”