The case for declining a White House invitation because of political disagreement is weakest when the occasion is purely ceremonial and the president is acting as head of state.