McLaren are to modify the rear wing they used to win the Azerbaijan Grand Prix after rivals raised questions about its legality.