A rational choice theory of the Supreme Court