Almenboligloven i Danmark kan føre til forskelsbehandling på baggrund af etnicitet, fastslår EU-Domstolen.