The Republican Party had opposed the extensions, and three conservative justices objected to the ruling.