Legal profession gets £1m funding for apprenticeships