Costa Rica defeated Saudi Arabia 3-1 at Saudi-owned Newcastle United's St James' Park, amid fan protests against use of the stadium by the Gulf state.