The Diet passed bills Wednesday that tighten controls on foreign residents, paving the way for them to take effect within three years, despite opposition from foreigners and human rights activists.

The planned enforcement follows an agreement on the bills reached last month between the Liberal Democratic Party-New Komeito ruling coalition and the Democratic Party of Japan, the largest opposition party.

The bills, which cleared an Upper House plenary session, will abolish the Alien Registration Act and revise immigration control and resident registration laws.