Facing financial strain amid a wave of migrants fleeing unrest in their home countries, the spending bill would impose a new nine-month limit on how long families can stay in the state’s emergency shelters, with limited extensions or waivers available.