I'ts a glitch with the UI. Select another settlement and come back there, it should be ok. The worst case scenario is that you have to wait until next turn. It happens when you upgrade too many things at once.