Brown signs EU reform treaty, eventually