Golden State struck the deal just before the deadline.