$312 million in state spending cuts OK'd by Minn. House and Senate