TLP’s legitimacy as a political party questioned by top court