Ship hulls, building types, and superweapons (even firing them) need the appropriate number of labs maintained. All the passive upgrades/techs don't.
So as an easy example, if that heavy cruiser hull needs 5 military labs to research, if you ever lose the 5th lab you won't be able to build new ones until you get it back.