Actually it can be done; the supremacy clause applies only to laws made pursuant to the Constitution, therefore all laws made by Congress Repugnant to the constitution are not so protected.
And who determines what federal laws are unconstitutional? Not the states, that has been determined in a long string of court cases going back to the earliest days of the Republic.