Lowe’s beat Wall Street’s quarterly earnings expectations on Tuesday, as outdoor do-it-yourself projects, the home professional business and stronger online…