The final vote to impeach Secretary Alejandro Mayorkas was 214-216 after four Republicans defected and joined all Democrats present in opposing the measure.