Eric Cantor said House Speaker John Boehner decision to step down could help avert a potential government shutdown.