House passes rules package that was at heart of McCarthy's speaker battle