melinmelin, welcome to FT.
I don't believe that discriminating against non-EU nationals per se is illegal (just like it's not illegal for the US government to put us through the humiliation of fingerprinting etc). However, as your husband is a citizen of a European Union member state you fall into a different category - you are supposed to have the same rights as your husband. If you look back through this thread you will see that this was mentioned earlier, and that it was suggested that it would require someone like you (i.e., the non-EU spouse of a citizen of an EU member state) to mount a legal challenge against Ryanair's silly rule.