The Supreme Court struggled Monday with whether it should allow federal officials to challenge deals between pharmaceutical corporations and their generic drug competitors that the government says could keep cheaper forms of medicine off the American market for longer periods of time.