Court opens door wider to buying of public office