A federal judge on Monday temporarily blocked the National Institutes of Health from implementing steep cuts to how medical research grants are funded, after 22 states sued to stop the change.