Visa program allowing religious workers to apply for US residency wins last-minute reprieve