WASHINGTON — The Trump Organization scored a major victory on Thursday when the agency in charge of overseeing federal government property ruled that its Trump International Hotel in a historic government building on Pennsylvania Avenue did not violate the terms of its lease when Donald J. Trump became president.

“The tenant is in full compliance,” Kevin M. Terry, a contracting officer at the agency, the General Services Administration, wrote in a 166-page ruling.

The decision came after Democrats in Congress and several government contracting experts and ethics groups had questioned if language in the 2013 lease between the G.S.A. and Mr. Trump and three of his children prohibited an elected federal official from participating in the deal.

“No member or delegate to Congress, or elected official of the Government of the United States or the Government of the District of Columbia, shall be admitted to any share or part of this Lease, or to any benefit that may arise therefrom,” the lease says, referring to the Old Post Office building, which the Trump Organization converted into the hotel late last year.