Traditional colleges and universities have become unlikely allies of the beleaguered for-profit industry as each group tries to fend off the government’s push for more accountability.