Michaela School prayer ban 'was supported by imam'