The temporary Bangladeshi government has given its backing to a deal to move garment factories away from capital Dhaka.