An impending loss of two federal grants threatens to significantly scale back UB’s teacher residency program.