A West Midlands college group has received a last-minute government bailout to avoid being declared “insolvent” next month.