WASHINGTON — Two associates of the president’s private lawyer, Rudolph W. Giuliani, who helped fund efforts to investigate one of President Trump’s political rivals, were charged in a separate case with violating campaign finance laws, according to court documents.