Brazil is in danger of losing its vote at the cash-strapped United Nations if it does not pay some of the $400 million it owes by the end of the year, U.N. and Brazilian officials said.