Just cut down the material you've created in your Research Facility (tap the blue balloon with the energy sign). After that you'll be able to use the building again.