A U.S. Bankruptcy Court judge on Tuesday approved the agreement that Massachusetts state government made to provide $30 million in advance Medicaid payments to keep a handful of Steward Health Care hospitals here open through August as the company tries to sell them. Judge Christopher Lopez’s decision, which follows his…