France agrees to EU commission migration pact