OSLO  Norwegian voters appear to have returned their Labor-dominated government to office, narrowly endorsing Prime Minister Jens Stoltenberg’s pursuit of expanded public services and rejecting angry demands by some of his opponents to crack down harshly on immigration.

According to official results with 99 percent of the votes counted early Tuesday, Mr. Stoltenberg’s three-party left-wing coalition won 86 seats in the 169-seat Parliament. That would give it just enough margin to continue as the only left-of-center government in Scandinavia and one of the few remaining in western Europe.

Though Mr. Stoltenberg declined to claim victory early Tuesday, he sounded optimistic, saying voters showed a clear desire “to renew, strengthen and improve the Norwegian social welfare.” A short time later, he told reporters, “I’m going home to bed.”

All major news media organizations called the election in his favor. “The prime minister can take this as a personal victory and a victory for the Labor Party,” said Harald Stanghelle, political editor of the newspaper Aftenposten.