President Donald Trump has been critical of federal judges who've moved to block some of his most contentious actions, such as his effort to freeze federal spending.