Liverpool ended a run of three straight defeats and eased the pressure on Arne Slot with a 2-0 win over Fulham.