San Francisco pulled off the stunning acquisition Sunday night