Federal property is not exempt from state laws. A federal jurisdiction is but of course there is only one of those.
It’s a basic Supremacy Clause case. A federal law permitting abortions overrides a state law banning them. The federal law in this case is narrow, but still valid.