TTIP: judges question legality of investor rights proposal