To make legal or permit under law. Either by decriminalising something that has been illegal or by specifically permitting it.