Japan was elected to one of the five nonpermanent seats on the U.N. Security Council on Thursday, returning to the body for the first time in five years.