Germany and Brazil are drafting a U.N. General Assembly resolution that would demand an end to excessive spying and invasion of privacy after a former U.S. intelligence contractor revealed massive international surveillance programs, U.N. diplomats said on Friday.