A hotly contested state election, seen as a bellwether for India’s national polls next year, has resulted in a politician of a local party allied with the opposition Congress being appointed chief minister — but only after a Supreme Court ruling and a race tainted by allegations of bribery. H.D. Kumaraswamy took the top job Wednesday in the southern Indian state of Karnataka.