TOKYO - Japan's ruling coalition and a small opposition party on Tuesday formally agreed on measures to ensure free high school education and advance social security reforms, clearing a major hurdle for enacting the state budget for the next fiscal year.