Every state sets its own curriculum, with varying degrees of freedom for the districts and schools within the states. The federal level has standards, which students are generally tested against in various standardized tests, that are tied to federal funding.
Multiple curricula can satisfy the same standards, at least on paper if not in practice. So states are, more or less, free to teach things how they want. However, they're also strongly driven by the textbook industry, which turns on the two biggest textbook purchasers: Texas and California. So a lot of the textbooks (and associated curriculum material) available for purchase in the rest of the states are driven by whatever those two states are pushing.
Multiple curricula can satisfy the same standards, at least on paper if not in practice. So states are, more or less, free to teach things how they want. However, they're also strongly driven by the textbook industry, which turns on the two biggest textbook purchasers: Texas and California. So a lot of the textbooks (and associated curriculum material) available for purchase in the rest of the states are driven by whatever those two states are pushing.