A federal judge on Monday stepped down from overseeing a lawsuit filed by Amazon after it was learned his wife owned stock in the company.