University bosses who shortened a degree apprenticeship to help the NHS tackle skills gaps have been criticised by Ofsted.