The government has given the go-ahead for pubs and bars to stay open for two hours longer than usual.