The stock market saw broad-based gains this week as it continued to recoup losses from the previous weeks. The S&P 500 index saw gains across various sectors, with energy being the biggest gainer in Monday’s trading. Traders were optimistic about the latest read on inflation, as the consumer-price index data released on Tuesday showed a…