India court to weigh future of mosque