Judge rejects class-action claim against Wal-Mart