The Democratic-controlled House easily passed legislation required to confirm retired Gen. Lloyd Austin as President Joe Biden’s secretary of defense, brushing aside concerns that his retirement occurred inside the seven-year window that safeguards civilian leadership of the military.