Housing codes are adopted at the municipal or state level. There is no mandatory "national" building code in the U.S., though there is a "model" building code at the national level upon which the state and local building codes are based. (https://localhousingsolutions.org/housing-policy-library/hou...)