Dick’s Sporting Goods Inc. posted higher quarterly profit and sales, allaying investor concerns about the chain’s controversial decision to tighten gun policies.

The retailer said Wednesday that its hunting business suffered during its fiscal first quarter, but it reported better demand for other items, which helped profit margins.

Dick’s...