Congress reaches deal on student loan legislation