Kevin McCarthy’s ouster as US House speaker plunged Congress into an internal power struggle as it faces key deadlines