The District of Columbia reached a settlement with a protester who claimed he was unlawfully detained for following National Guard soldiers while playing a film score.