House Speaker Kevin McCarthy has defended his record, including most recently in averting a partial federal government shutdown with Democratic support.