TOKYO—The lower house of Japan's parliament on Thursday approved legislation that effectively raises the country's mandatory retirement age to 65 from 60 as the government and employers try to deal with swelling pension costs due to an aging society.

Revising the retirement age and accompanying pension law has been the topic of debate among the government, unions and business lobbies as Japan's aging population has put an ever-larger squeeze on the country's finances.

As...