A judge is reviewing whether the council acted unlawfully when signing up to the bailout deal