Federal court denies St. Paul teacher's reinstatement