Lawmakers in the French parliament passed legislation on Tuesday that will bring in stricter controls on migration.