делать что-л. назло кому-л. — to do smth. to spite smb. как назло — as ill luck would have it
out of spite