Indian court permits Hindus to pray in Varanasi mosque