President threatens to close border over funding