Lyon secured the final Champions League place available in Ligue 1 by overcoming Rennes 2-0 at the Stade Gerland on the last day of the season.