Netherlands won their first match since sacking Danny Blind despite going down to 10 men against Morocco.