He served in the House for six years, joining the influential Education and Labor Committee and the Veterans' Affairs Committee. He concentrated his attention on international affairs, supporting the Truman Doctrine as the appropriate response to the emerging Cold War. He also supported public housing and opposed the Labor Management Relations Act of 1947, which restricted the power of labor unions. Though not as vocal an anti-communist as McCarthy, Kennedy supported the Immigration and Nationality Act of 1952, which required Communists to register with the government, and he deplored the "loss of China".