The law on sexuality discrimination does cover discrimination against contractors. You would have a case against an organisation where you were contracted for a particular job that treated you unfairly on grounds of your sexuality even if that organisation was not your employer.