Lawmaker's bill would give the state more control over local building codes by stripping away certain restrictions to help lower building costs of new housing and make homebuying more affordable.