When can I claim compensation through a writ petition before a High Court or the Supreme Court?