Japanese Prime Minister Shinzo Abe’s conservative coalition was on track to win 311 seats in the 465-seat parliament, putting the nationalist premier on course to become Japan’s longest-serving leader.