French lawmakers have spent weeks debating a budget proposal that has threatened to topple Barnier's cabinet.