HQ automation - 999 resources "bug"
The 999 that shows up on the UI as costs is a quirk with behavior that Bethesda added for the Virtual Workshop CC feature, which is what the new HQ system uses for automation. It simply acts like a "god mode", allowing the player to queue up tasks without having to wait around in realtime for the required resources.
These projects still have costs - however, the automation system means that the projects will be carried out automatically once these resources become available. If something appears to be stuck, or you're wondering why it's not building, then the first step is to check the task list for the department that handles the project and check costs. It should show you if you are lacking something, such as department energy or caps - and once you fulfil that requirement, it will be eligible to build.
If you prefer the old HQ system of only carrying out tasks when you currently have the resources already to do so, you can turn off the setting "commands use task list".