Liverpool manager Jurgen Klopp said his side had to work hard to beat a resilient Sheffield United side 2-1 at Anfield.