WASHINGTON — With the future of affirmative action in higher education hanging in the balance, the Supreme Court on Wednesday grappled with two basic questions, repeated by Chief Justice John G. Roberts Jr. in various forms at least a dozen times.