Landmark court ruling on marriages will be widened as legislators prepare to amend laws