A Pakistani man with ties to Iran has been charged over an alleged plot to assassinate US politicians and officials.