A court in Germany has ruled that the recent deportation to Tunisia of a failed asylum seeker — an Islamist suspected of being a bodyguard for the former al-Qaeda leader Osama bin Laden — was unlawful and that he must be immediately returned to Germany.