The European Court of Human Rights has ruled that an employee losing her job because she insisted on wearing a headscarf at work for religious reasons was not discriminated against because of her religion.