One of the quirks, and ongoing debates, of the US is the strong deference to states’ rights. Don’t confuse US law with Texas law. The majority of the population of the United States actually lives in states with abortion laws that are more liberal than what you’d find in the EU, for example.
The state versus federal distinction can be very confusing to people who view US politics through the lens of the worst news stories that come out of every state. The entire US has a land mass and population on the same order as that of the entire EU, and many states have populations similar to that of individual EU countries. We have a single state (California) that has an economy larger than all of the UK combined and almost as large as India.
The United States is big and diverse. We’re going through a phase where federal power is being reduced due to politics and some of the states are doing weird stuff. If you only view the US through news stories and imagine the US as a conglomeration of all of the worst and weirdest news stories from individual states, you’re going to have a very negative view of the US in general.