Legal aid contracting to face judicial review