The House passed a stopgap funding resolution, sending the measure to President Joe Biden's desk hours before the midnight deadline to avoid a government shutdown.