“Which” can absolutely refer to a clause, as in the example “He threw out my food, which made me angry.”