WikiLeaks founder Julian Assange arrived at court Wednesday to plead guilty to a felony for publishing U.S. military secrets under a deal that will set him free to return home to Australia after years holed up and imprisoned while fighting extradition to America.