The Dodgers had lost eight of their last nine games and three straight series headed into Monday's game against the Royals