K’taka CM wins vote, has to wait for court