A federal judge handed the National Rifle Association a legal loss on Friday, ruling against the organization in a lawsuit that took issue with the state closing down gun stores during New York’s coronavirus crisis earlier this year.