The court was hearing petitions filed in 2014 that sought directions to authorities to declare the Jama Masjid a protected monument and remove all encroachments in and around it