Egyptian-born Mamdouh Habib last year won the right to sue the government over interrogations in which he alleges he was tortured , beaten and shackled to the floor in the presence of Australian spies , diplomats and police officers .