A limited service will run through the night on some routes so people can pay their respects to the Queen.