Yes taking care of animals is important part of Islam, but they should have built a cat shelter instead as it's important Mosque remains clean, especially the floor where Muslims pray and cats can urinate or poo in the mosque
I'm sure if they collect donations from the worshippers, they can build a basic cat shelter before the winter