Obama threatens to veto controversial oil pipeline bill