Rajasthan Royals became the third team to qualify for the playoffs of IPL 2022 as they beat Chennai Super Kings in their final league game.