Primoz Roglic (Red Bull-Bora-Hansgrohe) came home safely in the time trial in the final stage to secure Vuelta a Espana glory for a fourth time.