AUGUSTA — Maine lawmakers have passed a “Student Loan Bill of Rights” aiming to protect borrowers.

The Senate unanimously enacted the legislation Monday. Democratic Gov. Janet Mills has 10 days to act on the bill or let it go into law without her signature.

Such legislation had failed in the last legislative session, under a Republican administration.

The bill would create a student loan ombudsman with responsibilities that include reviewing and possibly resolving complaints from borrowers. The ombudsman would also compile and analyze borrowers’ data and help borrowers understand rights and responsibilities.

Maine’s bill would require servicers who do business in Maine to get a license and undergo an investigation. The bill would automatically license student loan servicers under contract with the U.S. Department of Education.