Stanford University is implementing a hiring freeze as colleges and universities across the US confront the threat of severe funding cuts from the Trump administration.