Critics say the spending undermines efforts to address lengthening waiting lists as junior doctors continue their pay dispute.