Marlins score 6 in ninth, beat Cubs 6-3