Kelly (10-5) allowed three hits and struck out five.
They now go on to host the National League Divisional Series against the winner of Tuesday's NL Wild Card between Pittsburgh and Cincinnati.
Cubs starter Jeff Samardzija (8-13) took the loss, yielding three runs on eight hits over six innings.
Chicago (66-96) ended with six losses in seven games.
Susan Sarandon 'very excited' about daughter's pregnancy
Interpol investigating stolen passports on missing flight