Bradley Wright-Phillips scored twice to help New York Red Bulls to victory in the MLS over Atlanta United, who had a goal disallowed and two players sent off.