Labour has agreed to give Emmanuel Macron's government up to £660million - spread over the next three years - to continue funding anti-migrant operations by French police.