The Commonwealth of Kentucky voluntarily joined the union after seceding from the State of Virginia. In being admitted to statehood it agreed to subject itself to the supremacy of the federal constitution and by extension the federal courts. You don't have to always agree with the federal government - I sure don't - but it's still the government.
The supremacy of the Constitution gives power to the States and limits the power of the Federal Gov't...
10th Amendment: The powers not delegated to the United States by the Constitution, nor prohibited by it to the states, are reserved to the states respectively, or to the people.
The Supreme Court rarely declares laws unconstitutional for violating the Tenth Amendment. In the modern era, the Court has only done so where the federal government compels the states to enforce federal statutes.
The queer marriage act is a federal statute...Constitutionally it has no power over the States...