Update, 5:57 p.m. Aug. 31: Revised to reflect that judges blocked two of the laws set to take effect Friday.

AUSTIN — State lawmakers passed a raft of bills during the regular legislative session this spring, and Gov. Greg Abbott signed many of the measures into law. The new regulations range from the high-profile and contentious to the more obscure, such as a measure allowing Texans to openly carry swords in public.

Judges have blocked two of the more contentious laws that were to go into effect Friday — the ban on so-called sanctuary cities and a ban on a second-trimester abortion procedure.

Here's a list of some of the new laws, most of which take effect Friday, and the two laws that judges blocked.

1. Sanctuary cities ban

A federal district judge in San Antonio blocked significant portions of Texas' sanctuary cities ban Wednesday, two days before the law was set to go into effect. Attorney General Ken Paxton has filed an appeal.

Judge Orlando Garcia blocked provisions in the law that required local law enforcement departments to comply with federal requests to hold unauthorized immigrants in their custody. He also blocked a part of the law that said local departments couldn't implement policies that would "materially limit" the enforcement of immigration laws.

He did not block a portion of the law that allows police officers to ask people's immigration status during any legal detention, but it limited the actions officers can take after learning that a person is undocumented. Officers can only report the person's immigration status to federal authorities.

2. Texting while driving ban

Texans will no longer be able to "read, write, or send an electronic message while operating a motor vehicle unless the vehicle is stopped," according to a law that takes effect Friday. Fines for doing so will range from $25 to $99 for a first offense. Lawmakers have been working on a texting while driving ban for a decade, and support for the texting and driving ban surged in March after a distracted driver slammed into a church bus, killing 13 people.

The ban does not supersede local ordinances some cities have passed prohibiting all cellphone use while driving, despite an effort during the governor's special legislative session to do so.

3. "Lunch-shaming"

Come Friday, public schools will have to institute grace periods for students who don't have money to pay for school lunches. The law, sponsored by Rep. Helen Giddings, D-Dallas, requires schools to notify parents when students have low lunch account balances. Previously, schools often gave students cold sandwiches when they couldn't pay for lunch.

4. Abortion restrictions

A federal judge has blocked a law set to go into effect Friday that would have prevented doctors from performing one of the most common second-trimester abortion procedures. Medical professionals refer to the banned procedure as "dilation and evacuation," and there is medical consensus that it is safe.

Also starting in September, pending judicial action, is a rule that requires fetal tissue from abortions and miscarriages to be buried or cremated. A federal judge in January blocked the state from enforcing fetal tissue burial rules, writing that they "likely are unconstitutionally vague and impose an undue burden on the right to an abortion." Texas has appealed the judge's temporary block.

5. Attacking a police officer will be a hate crime

Attacking a police officer or judge in Texas will be considered a hate crime starting Friday. The penalty for making terroristic threats against peace officers will also change from a misdemeanor to a state jail felony.

6. Religious refusal for child welfare providers

Child welfare service providers, such as adoption agencies and group homes, will be able to refuse care to children and parents based on "sincerely held religious beliefs" starting Friday. Providers who refuse services to a child or parent will be required to refer them to another child welfare provider.

7. Straight-ticket voting ban

Lawmakers passed a measure this spring that makes "one-punch" straight ticket voting — the ability to cast a ballot for all the candidates of a single political party with one click — illegal in Texas starting Sept. 1, 2020. Supporters say the law will force voters to be more informed. Opponents have warned the measure will lead to longer voting lines and disproportionately affect voters of color. Only eight states other than Texas allow the practice of one-punch straight-ticket voting.

8. Lower handgun license fees

Gun licenses will cost $40, down from $140, starting Friday. The reduced fees will be the lowest in the nation and are expected to cost the state $58 million in revenue during the next five years. "No law-abiding Texan should be priced out of the ability to exercise their Second Amendment rights," Abbott said in a prepared statement after signing the law in May.

There he goes, @GovAbbott taking shots after signing law cutting cost of license to carry. #txlege pic.twitter.com/XEwWT0h3EJ — Madlin Mekelburg (@madlinbmek) May 26, 2017

9. Concealed carry at community colleges

As of Aug. 1, licensed gun owners can legally carry concealed firearms on community college campuses. The law, which was passed during the 2015 legislative session, took effect on four-year public university campuses in 2016. Private colleges can opt out of the law.

10. Open carry of swords

Texans will legally be allowed to carry swords, machetes, sabers, spears and knives with blades more than 5.5 inches long in most public places starting Friday. The measure met some resistance after a University of Texas at Austin student killed a fellow student with a large hunting knife in May.

CORRECTION, 7:05 p.m. Aug. 8, 2017: An earlier version of the story had the incorrect date that straight-ticket voting goes into effect.