A court has stopped the Trump administration's attempt to halt the FBI's planned move into a new headquarters that was approved under Biden.